<form action="{:url('publicArticleList')}" method="post" class="form_single">
    <div class="box">
        <div class="box-header">

            <div class="row">
                <div class="col-sm-5">
                    <ob_link>
                        <a class="btn export" url="{:url('exportExcel')}">
                            <i class="fa fa-download"></i>
                            导 出
                        </a>
                    </ob_link>

                    <ob_link>
                        <button  type="submit" class="btn ladda-button post" data-style="slide-up" target-form="form_single">
                            <span class="ladda-label"><i class="fa fa-file"></i>发 布</span>
                        </button>
                    </ob_link>

                    <ob_link>
                        <a class="btn" href="{:url('lifeAccountList',array('group' => $group))}">
                            <i class="fa fa-refresh"></i> 刷 新
                        </a>
                    </ob_link>
                    <div class="btn-group">
                        {empty name="group"}
                            <a class="btn active">全部</a>
                                {else/}
                            <a class="btn" href="{:url('lifeAccountList')}">全部</a>
                        {/empty}

                        {volist name='$lifeAccountStatusList' id='vo'}
                            {neq name="group" value="$key"}
                                <a class="btn" href="{:url('lifeAccountList',array('group' => $key))}">{$vo.status_content}</a>
                                    {else/}
                                <a class="btn active" href="{:url('lifeAccountList',array('group' => $key))}">{$vo.status_content}</a>
                            {/neq}
                        {/volist}
                    </div>

                    <ob_link><a class="btn" href="{:url('addLifeAccount',array('vo.status_content' => $group))}"><i class="fa fa-plus"></i> 新 增</a></ob_link>
                </div>


                <div class="col-sm-7">
                    <div class="box-tools search-form pull-right">
                        <div class="input-group input-group-sm">
                            <input type="text" name="search_data" style="width: 200px;" class="form-control pull-right" value="{:input('search_data')}" placeholder="请输入配置名称或标题">
                            <div class="input-group-btn">
                                <button type="button" id="search"  url="{:url('lifeAccountList')}" class="btn btn-info btn-flat"><i class="fa fa-search"></i></button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>

      <div class="box-header">
          <br/>
      </div>

      <!-- /.box-header -->
      <div class="box-body table-responsive">
        <table  class="table table-bordered table-hover">
          <thead>
          <tr>
              <th class="checkbox-select-all">
                  <label>
                    <input class="flat-grey js-checkbox-all" type="checkbox">
                  </label>
              </th>
              <th>标题</th>
              <th>生活号appid</th>
              <th>总粉丝数</th>
              <th>
                  <ob_link>
                      <a class="text-black ajax-get"
                         is-jump='true'
                         href="{:url('lifeAccountList', array('order_field' => 'name', 'order_val' => empty(input('order_val')) ? 1:0))}">
                          <i class="fa fa-sort"></i> 昨日新增粉丝数
                      </a>
                  </ob_link>
              </th>
              <th>昨日取消粉丝数</th>
              <th>状态</th>
              <th>操作</th>
          </tr>
          </thead>

          {notempty name='list'}
            <tbody>
                {volist name='list' id='vo'}
                    <tr>
                        <!--多选-->
                        <td>
                            <label>
                            <input class="flat-grey" type="checkbox" name="ids" value="{$vo.id}">
                            </label>
                        </td>
                        <td>
                            <ob_link>
                              <a class="btn-frameless" href="{:url('menuList', array('pid' => $vo['id']))}">{$vo.life_name}</a>
                            </ob_link>
                        </td>
                        <td>{$vo.appid}</td>
                        <td>{$vo.totalFans}</td>
                        <td>0</td>
                        <td>0</td>
                        <td class="text-center">
                            <!--<button class="btn btn-info">上架</button>-->
                            <ob_link><a class="ajax-get" href="{:url('setStatus', array('ids' => $vo['id'], 'status' => (int)!$vo['status']))}">{$vo.status_text}</a></ob_link>
                        </td>
                        <td class="col-md-5 text-center">
                            <!--<ob_link><a class="btn" href="{:url('editLifeAccount', array('ids' => $vo['id']))}">编辑</a></ob_link>-->
                            <ob_link><a class="btn ajax-get" href="{:url('deleteLiftAccount', array('ids' => $vo['id']))}">删除</a></ob_link>
                            <ob_link><a class="btn" href="{:url('getLifeAccountInfo', array('ids' => $vo['id']))}">修改生活号基本信息</a></ob_link>
                            <button class="btn btn-info">刷新</button>
                            <button class="btn btn-info">下架</button>
                            <ob_link><a class="btn" href="{:url('menuLifeAccount', array('ids' => $vo['id']))}">菜单</a></ob_link>
                            <button class="btn btn-info">图标菜单</button>
                        </td>
                    </tr>
                {/volist}
            </tbody>
            {else/}
            <tbody><tr class="odd"><td colspan="8" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
          {/notempty}
        </table>

        {include file="layout/batch_btn_group"/}

      </div>

      <div class="box-footer clearfix text-center">
          {logicLifeAccountList->render()}
      </div>

    </div>
</form>